# config.py

# import os
# API_TOKEN = os.getenv("API_TOKEN")

# 外部摄像头 API（示例）
CAMERA_API_URL = "http://localhost:5555/api/getCamera"
REPORT_API_URL = "http://localhost:5555/api/reportEvent"

API_TOKEN = "your-api-token"  # 建议通过环境变量注入

# MinIO 配置
MINIO_ENDPOINT = "localhost:9000"
MINIO_ACCESS_KEY = "3vta0dEz9syRUqdKR1QK"
MINIO_SECRET_KEY = "JAwXLR64mLhDSt7rKpaLn1HeNzkrofL8SM0KFJS2"
MINIO_SECURE = False  # 使用 HTTPS
BUCKET_NAME = "construction-evidence"

# 分析参数
MAX_CONCURRENT = 20
ANALYSIS_DURATION = 60  # 分析 30 秒
SAMPLE_FPS = 1          # 每秒抽 1 帧

# 请求配置
REQUEST_TIMEOUT = 10
MAX_RETRIES = 3

# Ollama 配置
OLLAMA_HOST = "http://localhost:11434"
OLLAMA_API = OLLAMA_HOST + "/api/chat"
# OLLAMA_MODEL = "qwen2.5vl"
OLLAMA_MODEL = "qwen2.5vl:7B"

# YOLO 模型路径
YOLO_MODEL_PATH = 'runs/train/construction_yolov8n8/weights/best.pt'